﻿using System.ComponentModel.DataAnnotations;

namespace Model.Entity.Article
{
    /// <summary>
    /// 文章表
    /// </summary>
    public class TB_Article : EntityBase_LONG
    {
        /// <summary>
        /// 标题(32)
        /// </summary>
        [Required, MaxLength(32)]
        public string Title { get; set; }
        /// <summary>
        /// 内容(131072=>2^17)
        /// </summary>
        [Required, MaxLength(131072)]
        public string Content { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        [Required]
        public int UserId { get; set; }
        /// <summary>
        /// 审核类型Id
        /// </summary>
        [Required]
        public int CheckTypeId { get; set; }
        /// <summary>
        /// 状态类型Id
        /// </summary>
        [Required]
        public int StateTypeId { get; set; }
        /// <summary>
        /// 浏览数量
        /// </summary>
        [Required]
        public int ViewNumber { get; set; }
        /// <summary>
        /// 点赞数量
        /// </summary>
        [Required]
        public int LikeNumber { get; set; }
        /// <summary>
        /// 评论数量
        /// </summary>
        [Required]
        public int CommentNumber { get; set; }
        /// <summary>
        /// 收藏数量
        /// </summary>
        [Required]
        public int CollectNumber { get; set; }
        /// <summary>
        /// 最后编辑时间
        /// </summary>
        public DateTime? LastEditDate { get; set; }
    }
}
